public class Main{
    public static void main(String[] args) {
        long  sum=8L,n=8,j=10,m=8L;
        for (int i = 0; i < 9; i++) {
            m =  m * j + n;
            sum =m+sum;
        }
        System.out.println("sum="+sum);
    }
}